﻿//
// Created: 2018/8/28
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.WXshopBuiness
{
    /// <summary>
    /// 产品评论
    /// </summary>
    public class  ProductComments:IEntity
    {
    
       ///<summary>
       ///
       ///<summary>
       public string ID  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Comment  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string UserName  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string UserId  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public DateTime CreateTime  { get; set; }
        [NotMapped]
        public string StrCreateTime {
            get {
                return CreateTime.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }

        public string UserImgUrl { get; set; }
       
        ///<summary>
        ///
        ///<summary>
        public int Enable  { get; set; } 
        /// <summary>
        /// 订单ID
        /// </summary>
        public string OrderId { get; set; }
       ///<summary>
       ///
       ///<summary>
        public string ProductID  { get; set; } 
       ///<summary>
       ///总体评价星数
       ///<summary>
       public int CommentTotalStarts  { get; set; } 
       ///<summary>
       ///服务评价星数
       ///<summary>
       public int CommentServiceStarts  { get; set; } 
       ///<summary>
       ///包装评价星数
       ///<summary>
       public int CommentPackageStarts  { get; set; } 
       ///<summary>
       ///快递评价星数
       ///<summary>
       public int CommentLogisticStarts  { get; set; } 
         
       public int CommentIndex { get; set; }
        /// <summary>
        /// 商品代码
        /// </summary>
       public string ProductCode { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string ProductName { get; set; }

        public string Domain { get; set; }
       [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}